package cn.wx.common.persistence.base;

import java.util.List;

public class BaseQ {
	
	private Long pId;
	
	private List<?> pIds;
	
	private Integer pageNo = 1;
	
	private Integer pageSize = 10;
	
	private String token;
	
	/**
	 * 和数据库(mysql)
	 */
	private Long fId;

	private List<Long> fIds;
	
	public Long getfId() {
		return fId;
	}

	public void setfId(Long fId) {
		this.fId = fId;
	}

	public List<Long> getfIds() {
		return fIds;
	}

	public void setfIds(List<Long> fIds) {
		this.fIds = fIds;
	}
	
    /**
     * 删除状态
     */
	private Boolean fRemove = false;
	
	/**
	 * 验证分页参数
	 * @return
	 */
	public Boolean checkCanPage() {
		if (pageNo == null || pageSize == null || pageNo < 0 || pageSize < 0) {
			return false;
		}
		return true;
	}


	public Integer getPageNo() {
		return pageNo;
	}


	public void setPageNo(Integer pageNo) {
		this.pageNo = pageNo;
	}


	public Integer getPageSize() {
		return pageSize;
	}


	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}


	public String getToken() {
		return token;
	}


	public void setToken(String token) {
		this.token = token;
	}


	public Long getpId() {
		return pId;
	}


	public void setpId(Long pId) {
		this.pId = pId;
	}


	public List<?> getpIds() {
		return pIds;
	}


	public void setpIds(List<?> pIds) {
		this.pIds = pIds;
	}


	public Boolean getfRemove() {
		return fRemove;
	}


	public void setfRemove(Boolean fRemove) {
		this.fRemove = fRemove;
	}
	
	
}
